<template>
  <div class="testBoxAll">
    <h2>测试html 模型元素</h2>
    <div class="testBox" id="testBox">
      <div v-html="htmlData"></div>
    </div>
  </div>
</template>

<script>
import actionMod from "./actionMod";
// import $ from "jquery";
export default {
  name: "",
  components: {},
  created() {},
  mounted() {
    this.$nextTick(() => {
      this.init();
    }, 0);
  },
  data() {
    return {
      htmlData: "",
    };
  },
  methods: {
    init() {
      console.log("引入测试  模型数据", actionMod);
      this.htmlData = actionMod;
    },
  },
};
</script>

<style scoped>
@import "../style/actionMod.css";
.testBoxAll {
  width: 100%;
  height: 100%;
  background-color: #fbf4f4;
  padding: 30px;
}

.testBox {
  width: 200px;
  height: 60px;
  background-color: #e4e4e4;
  border: 1px solid #999;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
</style>